export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "roleId", //如果需要树型数据填写这个，否则为空
        defaultColumnWidth: null,//默认的列宽

        //UI
        defaultExpandAll: false, //是否默认展开所有行
        pagingShow: true,//本页1-2
        totalShow: true,//共10条数据
        paginationShow: true,//分页

        selectionChange:false, //是否支持多选
        searchList: [
            {placeholder: '请输入登陆地址', label: '登陆地址', key: 'ipaddr', type: 'text'},
            {placeholder: '请输入用户名称', label: '用户名称', key: 'userName', type: 'text'}
        ],
        buttonList: [
            {name: '刷新', type: 'primary', plain: true, emitLabel: 'refresh'}
        ],
        tableList: [
            {label: '会话编号', key: 'tokenId'},
            {label: '登陆名称', key: 'userName'},
            {label: '部门名称', key: 'deptName'},
            {label: '主机', key: 'ipaddr'},
            {label: '登陆地点', key: 'loginLocation', },
            {label: '浏览器', key: 'browser'},
            {label: '操作系统', key: 'os'},
            {label: '登陆时间', key: 'loginTime'}
        ],
        tableButton: {
            name: '操作',
            list: [
                {name: '强退', type: 'danger', emitLabel: 'quit',power:"monitor:online:forceLogout"}
            ]
        }
    }
    return config
}